|
|
|
|
|
|
|
You can use similar methods to rotate around other axes to move a point into the YZ or XZ planes. |
|
|
|
|
|
|
|
|
As is the case in two dimensions, each of the simple three-dimensional transformations examined so far has a simple inverse. The inverse of a translation by distances Tx, Ty, and Tz is a translation by distances Tx, Ty, and Tz. |
|
|
|
|
|
|
|
|
The inverse of a scaling by factors Sx, Sy, and Sz is a scaling by factors 1/Sx, 1/Sy, and 1/Sz. |
|
|
|
|
|
|
|
|
Finally, the inverse of a rotation through angle q around an axis is a rotation through angle q around the same axis. An inverse rotation around the Z axis is given by the matrix: |
|
|
|
|
|
|
|
|
Because Cos(q) = Cos(q) and Sin(q) = Sin(q), you can simplify this to: |
|
|
|
|
|
|
|
|
Because your computer's screen is two dimensional, it cannot directly display three-dimensional objects. If you want to display three-dimensional objects on your two-dimensional screen, you must project the objects from three dimensions to two. |
|
|
|
|
|
|
|
|
More generally, a projection translates an object's representation from one set of dimensions to another. The most common projections are from three to two dimensions, |
|
|
|
|
|